//
//  YRJDiscountCollectionReusableView.m
//  YanRenjie
//
//  Created by dllo on 15/10/27.
//  Copyright (c) 2015年 yanrenjie. All rights reserved.
//

#import "YRJDiscountCollectionReusableView.h"

#define WIDTH self.frame.size.width
#define HEIGHT self.frame.size.height
@implementation YRJDiscountCollectionReusableView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.forMoreButton = [UIButton buttonWithType:UIButtonTypeSystem];
        self.forMoreButton.frame = CGRectMake((5.0 / 375) * WIDTH, (5.0 / 667) * HEIGHT, (365.0 / 375) * WIDTH, (20.0 / 667) * HEIGHT);
        [self addSubview:self.forMoreButton];
        [self.forMoreButton setTitle:@"查看全部" forState:UIControlStateNormal];
        self.forMoreButton.backgroundColor = [UIColor whiteColor];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.forMoreButton.frame = CGRectMake(0, (5.0 / 667) * HEIGHT, WIDTH, (20.0 / 667) * HEIGHT);
    NSLog(@"%f", WIDTH);
    NSLog(@"%f", HEIGHT);
}

@end
